cmake_minimum_required(VERSION 3.8)
project(daywalker LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)


#set(ALICE_READLINE_LIBRARY READLINE CACHE STRING "Readline library")
#set_property(CACHE ALICE_READLINE_LIBRARY PROPERTY STRINGS NATIVE READLINE)
#set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/build/bin)


# 添加对gdb的支持
SET(CMAKE_BUILD_TYPE "Debug")
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g2 -ggdb")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")



add_subdirectory(alice)
add_subdirectory(src)
add_subdirectory(nbulsi-mockturtle)


if(ALICE_EXAMPLES)
  add_subdirectory(examples)
endif()

if(ALICE_TEST)
  add_subdirectory(test)
endif()

